package com.rbs.entity;

import java.io.Serializable;
import java.math.BigDecimal;

public class Phone implements Serializable {
    private Integer pid;
    private String pname;
    private BigDecimal price;
    private Integer state;
    private Integer brandId;

    public Phone(Integer pid, String pname, BigDecimal price, Integer state, Integer brandId) {
        this.pid = pid;
        this.pname = pname;
        this.price = price;
        this.state = state;
        this.brandId = brandId;
    }

    public Phone() {
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    @Override
    public String toString() {
        return "Phone{" +
                "pid=" + pid +
                ", pname='" + pname + '\'' +
                ", price=" + price +
                ", state=" + state +
                ", brandId=" + brandId +
                '}';
    }
}
